/*
 * Copyright@2009 qcj All rights reserved.
 */
package org.firegrid.view.zk.util;

import java.util.Map;

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.Path;

/**
 * @author qcj,(jentrees2001@yahoo.com.cn)
 */
public class MainForward {
	public static void forward(Map<String, Object> params, String url) {
		Component parent = Path.getComponent("/main/contentDiv");
		parent.getChildren().clear();
		Executions.createComponents(url, parent, params);
	}
	public static void forwardNoClear(Map<String, Object> params, String url) {
		Component parent = Path.getComponent("/main/contentDiv");
		Executions.createComponents(url, parent, params);
	}
}
